﻿<Window x:Class="Pigmalion.UIWpf.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:my="clr-namespace:Pigmalion.BusinessEntities;assembly=Pigmalion.BusinessEntities" Loaded="Window_Loaded">
    <Window.Resources>
        <CollectionViewSource x:Key="productoViewSource" d:DesignSource="{d:DesignInstance my:Producto, CreateList=True}" />
    </Window.Resources>
    <Grid DataContext="{StaticResource productoViewSource}">
        <DataGrid AutoGenerateColumns="False" EnableRowVirtualization="True" Height="200" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="12,12,0,0" Name="productoDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected" VerticalAlignment="Top" Width="459">
            <DataGrid.Columns>
                <DataGridTextColumn x:Name="categoriaIdColumn" Binding="{Binding Path=CategoriaId}" Header="Categoria Id" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="codigoColumn" Binding="{Binding Path=Codigo}" Header="Codigo" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="descripcionColumn" Binding="{Binding Path=Descripcion}" Header="Descripcion" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="idColumn" Binding="{Binding Path=Id}" Header="Id" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="precioColumn" Binding="{Binding Path=Precio}" Header="Precio" Width="SizeToHeader" />
                <DataGridTextColumn x:Name="stockColumn" Binding="{Binding Path=Stock}" Header="Stock" Width="SizeToHeader" />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Window>
